<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:40:"./app/template/guojicms/index/index.html";i:1615109898;s:73:"/www/wwwroot/guojicms.com/47.101.46.143/app/template/guojicms/header.html";i:1615109898;s:73:"/www/wwwroot/guojicms.com/47.101.46.143/app/template/guojicms/footer.html";i:1615109898;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title><?php echo set('titles'); ?></title>
    <meta name="keywords" content="<?php echo set('keywords'); ?>">
    <meta name="description" content="<?php echo set('description'); ?>">
        <meta name="referrer" content="never">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/public/admin/css/font.css">
    <link rel="stylesheet" href="/public/css/default.css">
    <link href="<?php echo m(); ?>/css/style.css?v=<?php echo set('banben'); ?>" rel="stylesheet">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <script src="<?php echo m(); ?>/js/public.js?v=<?php echo set('banben'); ?>"></script>
    <!--预埋钩子-->
    <?php echo hook('indexheader'); ?>
</head>
<body>
    <div class="topbox">
        <div class="menu">
            <img src="<?php echo m(); ?>/img/menu.png" />
        </div>
        <!--移动端menu-->
        <div class="menubox">
            <?php if(user('userid')): ?>
            <div class="w_per clearfloat">
                <div class="w_pic">
                    <a href="<?php echo url('index/user/set'); ?>">
                        <img src="<?php echo user('userhead'); ?>">
                    </a>
                </div>
                <div class="w_login">	<span><?php echo user('username'); ?></span>
                </div>
            </div>
            <div class="w_syno">
				<a href="<?php echo url('index/user/set'); ?>"><?php echo dingyi(user('description'),'去写点什么吧...'); ?></a>
			</div>
            <div class="fanbox">
                <div class="w_fan clearfloat">
                    <a href="javascript:;">
                        <p><?php echo fun_st('html', array('uid' => user('userid'))); ?></p>
                        <p>投稿</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('comment', array('uid' => user('userid'))); ?></p>
                        <p>评论</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo user('point'); ?></p>
                        <p><?php echo set('jifen',2); ?></p>
                    </a>
                </div>
            </div>
            <div class="w_pay clearfloat">
				<a href="<?php echo url('index/user/uid',array('id'=>user('userid'))); ?>" class="w_guan" target="_blank">主页</a> <a href="<?php echo url('index/user/add'); ?>">投稿</a>
			</div>
            <?php else: ?>
            <div class="w_per clearfloat">
                <div class="w_pic">
                    <a href="javascript:;">
                        <img src="/public/img/touxiang.jpg">
                    </a>
                </div>
                <div class="w_login">	
                    <span>欢迎您</span>
                </div>
            </div>
            <div class="fanbox">
                <div class="w_fan clearfloat">
                    <a href="javascript:;">
                        <p><?php echo fun_st('html', array('open' => 1)); ?></p>
                        <p>文章</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('comment', array()); ?></p>
                        <p>评论</p>
                    </a>	
                    <span class="wline"></span>
                    <a href="javascript:;">
                        <p><?php echo fun_st('member', array()); ?></p>
                        <p>会员</p>
                    </a>
                </div>
            </div>
            <div class="w_pay clearfloat">
				<a href="<?php echo url('index/user/login'); ?>" class="w_guan">登录</a> <a href="<?php echo url('index/user/reg'); ?>">注册</a>
			</div>
            <?php endif; ?>
            <div class="w_mav">	
                <a href="/">首页</a>
                <?php $_result=fun_s('link',array('wz'=>1,'open'=>1),'px desc',4,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>><?php echo $vo['name']; ?></a>
                <?php endforeach; endif; else: echo "" ;endif; ?>  
            </div>
            <?php if(user('userid')): ?>
            <div class="w_cen clearfloat">
				<a href="<?php echo url('index/user/set'); ?>" target="_blank" class="w_cent"><img src="<?php echo m(); ?>/img/wset.png">  <span>设置</span></a>
				<a url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="del_t w_set"><span>退出</span> <span class="wdian"></span></a>
			</div>
            <?php endif; ?>
        </div>
        <div class="mobilezhe"></div>
        <div class="top clearfloat" align="center">
            <div class="logo">
                <a href="/">
                    <img src="<?php echo set('logo'); ?>" />
                </a>
            </div>
            <div class="nav">
                <ul class="clearfloat">
                    <li>
                        <a href="/">首页</a>
                    </li>
                    <?php $_result=fun_s('link',array('wz'=>1,'open'=>1),'px desc',100,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li>
                        <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>><?php echo $vo['name']; ?></a>
                    </li>
                	<?php endforeach; endif; else: echo "" ;endif; ?>  
                </ul>
            </div>
            <form method="get" class="searchbox clearfloat" action="<?php echo url('index/index/soso'); ?>">
                <input type="text" name="ks" value="<?php echo get('ks',''); ?>" placeholder="关键字" />	
                <button type="submit" class="se_btn" style="background-color: rgba(110, 65, 255, 0);"></button>
            </form>
            <div class="regcut clearfloat">	
                <?php if(user('userid')): ?>
                <div class="login_tou">
                    <a href="javascript:;">
                        <img src="<?php echo user('userhead'); ?>">
                    </a>
                    <div class="login_down">
                        <ul>
                            <li><a href="<?php echo url('index/user/set'); ?>" target="_blank"><?php echo user('username'); ?></a></li>
                            <li><a href="<?php echo url('index/user/set'); ?>" target="_blank">设置</a></li>
                            <li><a url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="del_t">退出</a></li>
                        </ul>
                    </div>
                </div>
                <?php else: ?>
                <div class="login_tou">
                    <a href="javascript:;">
                        <img src="/public/img/touxiang.jpg">
                    </a>
                    <div class="login_down">
                        <ul>
                            <li><a href="<?php echo url('index/user/reg'); ?>">注册</a></li>
                            <li><a href="<?php echo url('index/user/login'); ?>">登录</a></li>
                        </ul>
                    </div>
                </div>
                <?php endif; ?>
            </div>
            <div class="serbtn">
                <img src="<?php echo m(); ?>/img/sear.png" />
            </div>
            <!--移动端搜索按钮-->
            <div class="w_search clearfloat">
                <form method="get" class="w_se clearfloat" action="<?php echo url('index/index/soso'); ?>">
                    <input type="text" name="ks" value="<?php echo get('ks',''); ?>" placeholder="关键字" />
                    <span><button type="submit" class="iconfont" style="background-color: rgba(110, 65, 255, 0);"></button></span>
                </form>
                <div class="w_sebtn">取消</div>
            </div>
        </div>
    </div>
    <div class="h_top"></div>    
    <!--广告位置-->
    <div class="want">
        <?php echo ad(1); ?> 
    </div>
    <!--幻灯片-->
    <?php if(guoji('open')==1): ?>
    <div class="newsday wapyc">
        <div class="newsbox ">
            <div class="newsprev">	
                <span>
					<img src="<?php echo m(); ?>/img/nprev1.png" class="npr1"/>
			        <img src="<?php echo m(); ?>/img/nprev2.png" class="npr2"/>
				</span>
            </div>
            <div class="newsban swiper-container">
                <ul class="clearfloat swiper-wrapper">
                    <?php $_result=fun_s('html',array('open'=>1,'huandeng'=>1),'id desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="swiper-slide">
                        <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>">
                            <div class="pic_div">
                                <img src="<?php echo pic($vo['content']); ?>" />
                                <div class="pic_bj"></div>
                            </div>
                            <div class="newscont"><?php echo $vo['title']; ?></div>
                        </a>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="newsnext">	<span>
						<img src="<?php echo m(); ?>/img/nnext1.png" class="nnex1"/>
					    <img src="<?php echo m(); ?>/img/nnext2.png" class="nnex2"/>
					</span>
            </div>
        </div>
    </div>
    <?php endif; ?> 
    <!--幻灯片end-->
    <!--置顶推荐-->
    <?php if(guoji('open1')==1): ?>
    <div class="days wapyc">
        <div class="widget-header"><h4>站长推荐</h4></div>
        <div class="manu clearfloat">
            <!--推荐前1篇-->
            <div class="daysway">
                <?php $_result=fun_s('html',array('open'=>1,'settop'=>1),'times desc',1,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <div class="way1">
                    <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>">
                        <img src="<?php echo pic($vo['content']); ?>" />
                        <p><?php echo $vo['title']; ?></p>
                    </a>
                    <div class="way_tit"><?php echo fun_cate($vo['tid'],'name'); ?></div>
                </div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <!--推荐右2篇-->
            <div class="dayactbox">
                <?php $_result=fun_s('html',array('open'=>1,'settop'=>1),'times desc',3,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($_result) ? array_slice($_result,1,3, true) : $_result->slice(1,3, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <div class="dayact clearfloat">
                    <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>">
                        <div class="actpic">
                            <img src="<?php echo pic($vo['content']); ?>" />
                            <div class="way_tit"><?php echo fun_cate($vo['tid'],'name'); ?></div>
                        </div>
                        <div class="waycont">
                            <h1><?php echo $vo['title']; ?></h1>
                            <div class="waytext"><?php echo cut_c($vo['content'],100); ?></div>
                            <div class="like clearfloat">
                                <div class="zantime">	<span class="headport">
                                    <img src="<?php echo fun_u($vo['uid'], 'userhead'); ?>"/></span>
                                    <span class="likename"><?php echo fun_u($vo['uid'], 'username'); ?></span>
                                </div>
                                <div class="liketime"><?php echo times($vo['time']); ?></div>
                            </div>
                            <div class="jian">
                                <img src="<?php echo m(); ?>/img/jian.png" />
                            </div>
                        </div>
                    </a>
                </div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>
    <?php endif; ?>
    <!--置顶推荐end-->
    <div class="carbox clearfloat">
        <div class="carmat">
            <div class="widget-header"><h4>最新文章</h4>
                <a class="gengduo" href="<?php echo url('index/index/cate'); ?>"><i class="layui-icon">&#xe65b;</i>  </a>
            </div>
            <ul>
                <?php $_result=fun_s('html',array('open'=>1),'times desc',8,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li>
                    <div class="matcont">
                        <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>">
                            <h1><?php echo $vo['title']; ?></h1>
                            <div class="mattext"><?php echo cut_c($vo['content'],100); ?></div>
                        </a>
                        <div class="like clearfloat">
                            <div class="zantime">	
                                <span class="headport"><img src="<?php echo fun_u($vo['uid'], 'userhead'); ?>"/></span>
                                <span class="likename"><?php echo fun_u($vo['uid'], 'username'); ?></span>
                                <span class="liked"></span>
                                <span class="likename"><?php echo times($vo['time']); ?></span>
                            </div>
                            <div class="zanbox">	
                                <span class="zanbtn"></span><span class="zannum"><?php echo $vo['zan']; ?></span>
                                <a href="javascript:;" class="cri"></a><span class="zannum"><?php echo fun_st('comment', array('fid'=>$vo['id'])); ?></span>
                            </div>
                        </div>
                    </div>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div class="carmore">	<a href="<?php echo url('index/index/cate'); ?>">点击加载更多</a>
            </div>
        </div>
        <!--右边-->
        <div class="drivebox">
            <!--热门文章-->
            <div class="industbox">
                <div class="widget-header"><h4>猜你喜欢</h4></div>
                <div class="indust">
                    <ul>
                        <?php $_result=fun_sj('html',array('open'=>1),12);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li>
                            <a href="<?php echo url('index/index/html',array('id'=>$vo['id'])); ?>" class="clearfloat">
                                <div class="industpic">
                                    <img src="<?php echo pic($vo['content']); ?>" />
                                </div>
                                <div class="industcont">
                                    <h1><?php echo $vo['title']; ?></h1>
                                    <p><?php echo cut_c($vo['content'],15); ?></p>
                                </div>
                            </a>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </div> 
        </div>
    </div>
    <!--友情链接-->
    <div class="want">
        <div class="widget-header"><h4>友情链接</h4></div>
        <ul class="post-tags">
            <?php $_result=fun_s('link',array('wz'=>2,'open'=>1),'px desc',100,0);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['timed'] > date('Y-m-d',time())): ?> 
            <li>
                <a href="<?php echo $vo['lianjie']; ?>" <?php if($vo['xin']==1): ?>target="_blank" <?php endif; ?>>
				<?php echo $vo['name']; ?>
				</a>
			</li>
            <?php endif; endforeach; endif; else: echo "" ;endif; ?> 
        </ul>
    </div>
    <!--预埋钩子-->
    <?php echo hook('indexindex'); ?>
        <div class="footbox">
        <div class="footer clearfloat">
            <div class="analyse">
                <h1><?php echo set('title'); ?></h1>
                <p>
                    <!--免费版请保留下面115cms.com的版权谢谢！如需去版权请购买授权-->
                    <span>Copyright ©2021 <a style="color: #bcb7b7;" href="http://www.115cms.com" target="_blank"><?php echo config('web.name'); ?> V<?php echo config('web.banben'); ?></a>All Rights Reserved.<a style="color: #bcb7b7;" href="http://www.beian.miit.gov.cn/" target="_blank"><?php echo set('icp'); ?></a>
					</span>
                </p>
                <p class="ao"><?php echo set('banquan'); ?><?php echo set('tongji'); ?></p>
            </div>
            <div class="footline"></div>
            <div class="about">
                <h1>关于我们</h1>
                <?php $_result=fun_s('dan',array('open'=>1),'id desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <p><a href="<?php echo url('index/index/dan',array('alias'=>$vo['alias'])); ?>"><?php echo $vo['title']; ?></a></p>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="serve">
                <h1>底部导航</h1>
                <?php $_result=fun_s('link',array('open'=>1,'wz'=>3),'px desc',20,1);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <p><a <?php if($vo['xin']==1): ?>target="_blank"<?php endif; ?> href="<?php echo $vo['lianjie']; ?>"><?php echo $vo['name']; ?></a></p>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="footline"></div>
            <div class="follow">
                <img style="height: 150px;width: 150px;" src="<?php echo guoji('ma'); ?>" />
            </div>
        </div>
    </div>
    <!--预埋钩子-->
    <?php echo hook('indexfooter'); ?>
</body>
<script type="text/javascript" src="/public/js/form_ajax.js?v=<?php echo set('banben'); ?>"></script>
</html>  